//
//  DNUserContext.swift
//  LunalerApp
//
//  Created by 露乐ios on 2018/2/5.
//  Copyright © 2018年 露乐ios. All rights reserved.
//

import UIKit

class DNUserContext: NSObject {
    
    var token = ""
    var name : String?
    var isLogin : Bool?{
        get{
            return self.token.lengthOfBytes(using: .utf8)>0
        }
    }
    var userMobile : String?
    var idCard : String?
    var iconPath : String?
    var UserId : String?
    var MemberId : String?
    var TenantID : String?
    var RealName : String?
    var NickName : String?
    
    var openid : String?
    var sex : String?
    var unionid : String?
    var province : String?
    var country : String?
    var city : String?
    var ChannelName : String?
    var Point : String?
    var wechatIcon : String?
    var wechatNickName : String?
    var weixinCode : String?
    var isWebWXAuth : Bool?
    
    var userQRCodeURLStr : String?
    var saleInputSupplyCompanyName : String?
    var saleInputSupplyCompanyID : String?
    var returnInputSupplyCompanyName : String?
    var returnInputSupplyCompanyID : String?
    
    
    func cleanUserInfo(){
        
    }
    
    func kIsLogin() -> Bool{
        return self.token.lengthOfBytes(using: .utf8) > 0
    }
    

    static let sharedInstance = DNUserContext()
    private override init() {}
    
}
